<?php
require_once($_SERVER['DOCUMENT_ROOT'] . "/defaultconf.mex");
require_once($GLOBALS['PAD'] . "Modules/FTK9D4D0/modconf.mex");
MYTCONN();

form_pr('TrnTaskForm', '', '', 'post');
?>
<script charset="utf-8" type="text/javascript">alert();ajax_push('TransactTasks');</script>
<div id="TransactTaskFilters" class="title">
    <div style="float:left;"><?php
mn_field('button', 'ED', 'TransactViewMode1', 'Transaccoes', '', '', '', '" style="width:120px;margin:2px;padding:10px" onclick="
			document.TrnTaskForm.action=\'' . $MODURL . 'Lib/a05_TRNTaskList.php?View=1\';
			subform(\'TrnTaskForm\',\'TransactTaskList\');');

mn_field('button', 'ED', 'TransactViewMode2', 'Metodos', '', '', '', '" style="width:120px;margin:2px;padding:10px" onclick="
			document.TrnTaskForm.action=\'' . $MODURL . 'Lib/a05_TRNTaskList.php?View=2\';
			subform(\'TrnTaskForm\',\'TransactTaskList\');');

echo '| Periodo: ';
mn_field('date', 'ED', 'TransactDateStart', '', 'TrnTaskForm', '8', '', '');
mn_field('date', 'ED', 'TransactDateEnd', '', 'TrnTaskForm', '8', '', '');

mn_field('hselect', 'ED', 'TransactMethod', '', "-Metodo-;FileTransfer;WebService#0;1;2", '', '', '" style="margin:2px;padding:10px');
mn_field('hselect', 'ED', 'TransactChannel', '', "-Canal-;Saida;Entrada#0;1;2", '', '', '" style="margin:2px;padding:10px');
mn_field('select', 'ED', 'TransactCorrespondent', '', "SELECT CorrNumero AS ID, CorrNombre AS NAME FROM corresponsales WHERE CorrActivo = 1", '-Correspondente-', '', '" style="margin:2px;padding:10px');
echo '</div>';
mn_field('button', 'ED', 'TransactRefresh', 'ForÇar Actualização', '', '', '', '" style="float:right" onclick="
			document.TrnTaskForm.action=\'' . $MODURL . 'Lib/a05_TRNTaskList.php\';
			subform(\'TrnTaskForm\',\'TransactTaskList\');');
mn_field('button', 'ED', 'TransactDetatch', 'Separar Transaccoes', '', '', '', '" style="float:right" onclick="
			window.open(\'\',\'\');');
?>
    </div>
</form>
<div id="TransactTaskList" style="clear:both">
<?php include('Lib/a05_TRNTaskList.php'); ?>
</div>